package com.attendance.chdingtask.service;

import com.attendance.chdingtask.dao.BaseJPA;
import com.attendance.chdingtask.dao.DeptInfoDao;
import com.attendance.chdingtask.model.DeptInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeptInfoService extends BaseService<DeptInfo,Long> {
    @Autowired
    private DeptInfoDao dao;

    @Override
    protected BaseJPA<DeptInfo> getDao() {
        return dao;
    }

    public DeptInfo findByDingDeptId(Long deptId) {
        return  dao.findDeptInfoByDeptId(deptId);
    }
}

